package com.neuedu.boot.entity;

import javax.validation.constraints.Size;

/**
 * 项目：      springboot
 * 类名:       User
 * 创建时间：  2024/3/28 10：58
 * 描述 :
 * 作者 :     张金山
 * QQ :     314649444
 * Site:      https://jshand.gitee.io
 */
public class User {
    private Integer id;

    @Size(min = 5,max = 10,message = "用户名长度必须在5-10之间")
    private String username;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                '}';
    }
}

